﻿// 上传文件的控件

// 1.文件上传的只读模式
.hiddenUploadInput {
  .el-upload-list__item-status-label,
  .el-upload,
  .el-icon-close,
  .el-icon-close-tip,
  .el-upload-list__item-delete {
    display: none !important;
  }
}

// 2.文件上传--拖拽的
.el-upload-dragger{
  width: 240px;
  height: 140px;
  background-color: transparent;
  .el-icon-upload{
    font-size: 50px;
    line-height: 35px;
    margin: 30px 0 0px;
  }
}
.el-upload--picture-card {
  width: 142px;
  height: 142px;
  line-height: 140px;
  background-color: transparent;
}
.el-upload-list--picture-card .el-upload-list__item {
  width: 142px;
  height: 142px;
}

// 3.上传图片文件的样式
.upload_imgContent {
  .el-upload {
    border: 1px dashed $theme_form_border_color;
    border-radius: 0;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    .upload_imgIcon {
      display: block;
      height: 100px;
      padding-top: 60px;
      line-height: 40px;
      font-size: 28px;
      color: $theme_font_color;
    }
    span {
      color: $theme_font_color;
    }
  }
  .el-upload:hover {
    border-color: $theme_main_color;
    .upload_imgIcon {
      color: $theme_main_color;
    }
    span{
      color: $theme_main_color
    }
  }
  .upload_img {
    display: block;
    width: 100%;
    height: 100%;
  }
  // 没有图片时
  .upload_noImg {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 198px;
    p:first-child {
      width: 100%;
      padding-top: 50px;
      line-height: 40px;
      i {
        font-size: 60px;
      }
    }
    p:last-child {
      line-height: 30px;
      font-size: 16px;
      font-weight: 600;
    }
  }
}
// 上传用户图片的控件（添加账号的功能）
.upload_userimgContent {
  .el-upload {
    width: 80px;
    height: 80px;
    margin: 0;
    display: inline-block;
    background-color: transparent;
    .upload_imgIcon {
      height: 80px;
      padding-top: 0;
      line-height: 80px;
    }
  }
  // 图片预览展示区域
  .el-upload-list {
    display: inline-block;
    width: 65%;
    margin-left: 10px;
  }
  .el-upload-list--picture .el-upload-list__item {
    margin: 0;
    padding: 4px 10px 4px 90px;
    height: 80px;
    border: 1px dashed $theme_form_border_color;
    border-radius: 0;
  }
}

// 4、el-image
.el-image.show_uploadPic{
  text-align: center;
  img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }
}
.el-upload--picture-card {
  border-color: $theme_form_border_color;
  i {
    color: $theme_font_color;
  }
}